package com.example.demo.Server.impl;

import com.example.demo.Server.UserServer;
import com.example.demo.entity.User;
import com.example.demo.mapper.User_Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.UUID;

@Service
public class User_Impl implements UserServer {

    @Autowired
    User_Mapper user_mapper;
    @Override
    public void Updata_Attachments(User user) {
        user_mapper.Updata_Attachments(user);
    }

    @Override
    public String Select_Attachments(Integer id) {
        return user_mapper.Select_Attachments(id);
    }

    @Override
    public ArrayList<User> list() {
        return user_mapper.list();
    }
}
